package com.parking.status.sync.netty.entity;

import java.util.Date;

/**
 * Created by Administrator on 2015/9/18.
 */
public class ResponsePre implements IResponse {

    //流水号：
    protected int seqno;

    //业务编号
    protected String code;

    //通用响应
    protected ResponseCommon commResponse;

    public ResponsePre() {}

    public ResponsePre(int seqno, String code, String result, String msg) {
        this.seqno = seqno;
        this.code = code;
        this.commResponse = new ResponseCommon(result, msg);
    }

    public ResponsePre(RequestPre request, String result, String msg) {
        this.seqno = request.getSeqno();
        this.code = request.getCode();
        this.commResponse = new ResponseCommon(result, msg);
    }

    public int getSeqno() {
        return seqno;
    }

    public void setSeqno(int seqno) {
        this.seqno = seqno;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public ResponseCommon getCommResponse() {
        return commResponse;
    }

    public void setCommResponse(ResponseCommon commResponse) {
        this.commResponse = commResponse;
    }
}
